Optimal. Leaf size=232 \[ -\frac {d \sqrt {a+\frac {b}{x^2}}}{c \sqrt {c+\frac {d}{x^2}} x}+\frac {\sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}} x}{c}+\frac {\sqrt {d} \sqrt {a+\frac {b}{x^2}} E\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{\sqrt {c} \sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}} \sqrt {c+\frac {d}{x^2}}}-\frac {b \sqrt {c} \sqrt {a+\frac {b}{x^2}} F\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{a \sqrt {d} \sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}} \sqrt {c+\frac {d}{x^2}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 232, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {382, 486, 21,
433, 429, 506, 422} \begin {gather*} -\frac {d \sqrt {a+\frac {b}{x^2}}}{c x \sqrt {c+\frac {d}{x^2}}}+\frac {x \sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}}}{c}-\frac {b \sqrt {c} \sqrt {a+\frac {b}{x^2}} F\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{a \sqrt {d} \sqrt {c+\frac {d}{x^2}} \sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}}}+\frac {\sqrt {d} \sqrt {a+\frac {b}{x^2}} E\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{\sqrt {c} \sqrt {c+\frac {d}{x^2}} \sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 382
Rule 422
Rule 429
Rule 433
Rule 486
Rule 506
Rubi steps
\begin {align*} \int \frac {\sqrt {a+\frac {b}{x^2}}}{\sqrt {c+\frac {d}{x^2}}} \, dx &=-\text {Subst}\left (\int \frac {\sqrt {a+b x^2}}{x^2 \sqrt {c+d x^2}} \, dx,x,\frac {1}{x}\right )\\ &=\frac {\sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}} x}{c}-\frac {\text {Subst}\left (\int \frac {b c+b d x^2}{\sqrt {a+b x^2} \sqrt {c+d x^2}} \, dx,x,\frac {1}{x}\right )}{c}\\ &=\frac {\sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}} x}{c}-\frac {b \text {Subst}\left (\int \frac {\sqrt {c+d x^2}}{\sqrt {a+b x^2}} \, dx,x,\frac {1}{x}\right )}{c}\\ &=\frac {\sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}} x}{c}-b \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^2} \sqrt {c+d x^2}} \, dx,x,\frac {1}{x}\right )-\frac {(b d) \text {Subst}\left (\int \frac {x^2}{\sqrt {a+b x^2} \sqrt {c+d x^2}} \, dx,x,\frac {1}{x}\right )}{c}\\ &=-\frac {d \sqrt {a+\frac {b}{x^2}}}{c \sqrt {c+\frac {d}{x^2}} x}+\frac {\sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}} x}{c}-\frac {b \sqrt {c} \sqrt {a+\frac {b}{x^2}} F\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{a \sqrt {d} \sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}} \sqrt {c+\frac {d}{x^2}}}+d \text {Subst}\left (\int \frac {\sqrt {a+b x^2}}{\left (c+d x^2\right )^{3/2}} \, dx,x,\frac {1}{x}\right )\\ &=-\frac {d \sqrt {a+\frac {b}{x^2}}}{c \sqrt {c+\frac {d}{x^2}} x}+\frac {\sqrt {a+\frac {b}{x^2}} \sqrt {c+\frac {d}{x^2}} x}{c}+\frac {\sqrt {d} \sqrt {a+\frac {b}{x^2}} E\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{\sqrt {c} \sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}} \sqrt {c+\frac {d}{x^2}}}-\frac {b \sqrt {c} \sqrt {a+\frac {b}{x^2}} F\left (\cot ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )|1-\frac {b c}{a d}\right )}{a \sqrt {d} \sqrt {\frac {c \left (a+\frac {b}{x^2}\right )}{a \left (c+\frac {d}{x^2}\right )}} \sqrt {c+\frac {d}{x^2}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.84, size = 86, normalized size = 0.37 \begin {gather*} \frac {\sqrt {a+\frac {b}{x^2}} \sqrt {\frac {d+c x^2}{d}} E\left (\sin ^{-1}\left (\sqrt {-\frac {c}{d}} x\right )|\frac {a d}{b c}\right )}{\sqrt {-\frac {c}{d}} \sqrt {c+\frac {d}{x^2}} \sqrt {\frac {b+a x^2}{b}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 94, normalized size = 0.41
method | result | size |
default | \(\frac {\EllipticE \left (x \sqrt {-\frac {c}{d}}, \sqrt {\frac {a d}{b c}}\right ) \sqrt {\frac {a \,x^{2}+b}{b}}\, \sqrt {\frac {c \,x^{2}+d}{d}}\, b \sqrt {\frac {a \,x^{2}+b}{x^{2}}}}{\sqrt {-\frac {c}{d}}\, \left (a \,x^{2}+b \right ) \sqrt {\frac {c \,x^{2}+d}{x^{2}}}}\) | \(94\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a + \frac {b}{x^{2}}}}{\sqrt {c + \frac {d}{x^{2}}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\sqrt {a+\frac {b}{x^2}}}{\sqrt {c+\frac {d}{x^2}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________